import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { Route } from '@angular/router';

import { MaintaskComponent } from './maintasks/maintask.component';
import { SidetaskComponent } from './sidetasks/sidetask.component';
import { DeliveryTasksComponent } from './batch-tasks/delivery-tasks.component';

@NgModule({
    imports: [
        RouterModule.forChild([
            {
                path: '',
                children: [
                    {
                        path: 'model',
                        component: MaintaskComponent,
                        data: { permission: 'Mes51.Pages.Maintasks' }
                    },
                    {
                        path: 'month',
                        component: SidetaskComponent,
                        data: { permission: 'Mes51.Pages.Sidetasks' }
                    },
                    {
                        path: 'delivery',
                        component: DeliveryTasksComponent,
                        data: { permission: 'Mes51.Pages.Delivery' }
                    }
                ]
            }
        ])
    ],
    exports: [RouterModule]
})
export class PlanRoutingModule {}
